package model;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName = "categorias")
public class Categoria {
	public static final String ID_FIELD_NAME = "id"; 
	public static final String NOMBRE_FIELD_NAME = "nombre"; 
	
	@DatabaseField(generatedId = true, columnName= ID_FIELD_NAME)
	private int id;
	
	@DatabaseField( columnName=NOMBRE_FIELD_NAME )
	private String nombre;
	
	public Categoria() {
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getNombre() {
		return nombre;
	}

	public void setNombre(String nombre) {
		this.nombre = nombre;
	}
	public String toString(){
		return this.getNombre();
	}
}
